﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;


/// <summary>
/// WarFlagOrigin 只提供WarFlag与TroopLeader之间的连接，具体的逻辑由WarFlag负责
/// </summary>
public class WarFlagOrigin : MonoBehaviour {
    public BeamRayInteractive beamRayInteractive;


    public WarFlag warFlag;
    public TroopVehicle troopVehicle;
    public TroopLeader troopLeader;
    public bool DrawGizmos;


    private void OnDrawGizmos()
    {
        if(DrawGizmos)
        {
            Gizmos.color = Color.red;
            if (warFlag != null)
            {
                Gizmos.DrawLine(transform.position, warFlag.transform.position);
            }

        }
    }
}
